package com.zto.sch.base.normal.classload;

import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.junit.Test;

import java.util.Date;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2021-04-08 20:09
 **/
public class ClassLoadTest {
    @Test
    public void testClassLoad() {
        String className = "StringAdd";


        this.getClass().getClassLoader();


    }


    public static void main(String[] args) {
        Date now = new Date();
        Date date = DateUtils.addMonths(now, -1200);
        String format = DateFormatUtils.format(date, "yyyy-MM-dd");
        System.out.println(format);
    }
}
